from django.db import models

# Create your models here.
from App_User_SigninAndRegister.models import User
from App_ReadNovel.models import bookmark

class Books(models.Model):
    bookid = models.CharField(max_length=255,primary_key=True)
    title = models.CharField(max_length=255)
    author = models.CharField(max_length=255)
    category = models.CharField(max_length=255)
    profile = models.CharField(max_length=255)
    nice = models.IntegerField(default=0)
    bookmark = models.ManyToManyField(bookmark)
    iscollection = models.ManyToManyField(User,related_name="user_iscollection")
    isnice= models.ManyToManyField(User,related_name="user_isnice")
    userrecord = models.ManyToManyField(User,related_name="record")

